package by.myteam.gonki.gui.view;

import java.awt.Color;
import java.awt.Graphics;

import javax.swing.JPanel;

import by.myteam.gonki.logic.GameLogic;

@SuppressWarnings("serial")
public class GameOverView extends JPanel {;

	public void paint(Graphics g) {
		g.setColor(Color.BLACK);
		g.fillRect(0, 0, this.getWidth(), this.getHeight());
		g.setColor(Color.WHITE);
		g.drawString("GAME OVER", 450, 300);
		g.drawString("POINTS: " + GameLogic.INSTANCE.getAllPath()/ GameLogic.INSTANCE.getTravelTime(), 450, 330);

	}
}
